Incremental Computation of Taylor Series and System Jacobian in DAE solving using Automatic Differentiation INCREMENTAL COMPUTATION OF TAYLOR SERIES AND SYSTEM JACOBIAN IN DAE SOLVING USING AUTOMATIC DIFFERENTIATION
نویسنده
چکیده
We propose two efficient automatic differentiation (AD) schemes to compute incrementally Taylor series and System Jacobian for solving differential-algebraic equations (DAEs) by Taylor series. Our schemes are based on topological ordering of a DAE’s computational graph and then partitioning the topologically sorted nodes using structural information obtained from the DAE. Solving a DAE by Taylor series is carried out in stages. From one stage to another, partitions of the computational graph are incrementally activated so that we can reuse Taylor coefficients and gradients computed in previous stages. As a result, the computational complexity of evaluating a System Jacobian is independent of the number of stages. We also develop a common subexpression elimination (CSE) method to build a compact computational graph through operator overloading. The CSE method is of linear time complexity, which makes it suitable as a preprocessing step for general operator overloaded computing. By applying CSE, all successive overloaded computation can save time and memory. Furthermore, the computational graph of a DAE reveals its internal sparsity structure. Based on it, we devise an algorithm to propagate gradients in the forward mode of AD using compressed vectors. This algorithm can save both time and memory iv when computing the System Jacobian for sparse DAEs. We have integrated our approaches into the Daets solver. Computational results show multiple-fold speedups against two popular AD tools, FADBAD++ and ADOL-C, when solving various sparse and dense DAEs.
منابع مشابه
Solving Differential-algebraic Equations by Taylor Series (i): Computing Taylor Coefficients
This paper is one of a series underpinning the authors’ DAETS code for solving DAE initial value problems by Taylor series expansion. First, building on the second author’s structural analysis of DAEs (BIT 41 (2001) 364–394), it describes and justifies the method used in DAETS to compute Taylor coefficients (TCs) using automatic differentiation. The DAE may be fully implicit, nonlinear, and con...
متن کاملAutomatic Differentiation based QMOM for Population Balance Equations
The quadrature method of moments (QMOM) has emerged as a promising tool for the solution of population balance equations in the past few years. The QMOM requires solving differential algebraic equations (DAEs) consisting of ordinary differential equations related to the evolution of moments as well as nonlinear algebraic equations resulting from the quadrature approximation of moments. In this ...
متن کاملSolving Volterra Integral Equations of the Second Kind with Convolution Kernel
In this paper, we present an approximate method to solve the solution of the second kind Volterra integral equations. This method is based on a previous scheme, applied by Maleknejad et al., [K. Maleknejad and Aghazadeh, Numerical solution of Volterra integral equations of the second kind with convolution kernel by using Taylor-series expansion method, Appl. Math. Comput. (2005)] to gain...
متن کاملNUMERICAL SOLUTION OF THE MOST GENERAL NONLINEAR FREDHOLM INTEGRO-DIFFERENTIAL-DIFFERENCE EQUATIONS BY USING TAYLOR POLYNOMIAL APPROACH
In this study, a Taylor method is developed for numerically solving the high-order most general nonlinear Fredholm integro-differential-difference equations in terms of Taylor expansions. The method is based on transferring the equation and conditions into the matrix equations which leads to solve a system of nonlinear algebraic equations with the unknown Taylor coefficients. Also, we test the ...
متن کاملAn Approximate Method for System of Nonlinear Volterra Integro-Differential Equations with Variable Coefficients
In this paper, we apply the differential transform (DT) method for finding approximate solution of the system of linear and nonlinear Volterra integro-differential equations with variable coefficients, especially of higher order. We also obtain an error bound for the approximate solution. Since, in this method the coefficients of Taylor series expansion of solution is obtained by a recurrence r...
متن کامل